// import {
// 	asyncRequest,
// 	thirdRequest,
// 	uploadRequest
// } from "@/utils/request.js"
import {request,asyncRequest} from "@/utils/request.js"

//会议通知列表
export const formLogin = ({
	username,
	password
}) => {
	return request({
		url: `/app/formLogin?username=${username}&password=${password}&encrypt=false`,
		method: 'post'
	})
}

//会议通知列表
export const hytzList = (data) => {
	return asyncRequest({
		url: `/app/zfw/hytz/list`,
		data
	})
}

//会议通知列表
export const hytzInfo = (data) => {
	return asyncRequest({
		url: `/app/zfw/hytz/${data}`
	})
}

//会议室列表
export const roomList = (data) => {
	return asyncRequest({
		url: `/app/bus/meetingRoom/listdata`,
		data
	})
}

//会议申请列表
export const hyapList = (data) => {
	return asyncRequest({
		url: `/app/zfw/hyap/list`,
		data
	})
}

//会议申请详情
export const hyapInfo = (data) => {
	return asyncRequest({
		url: `/app/zfw/hyap/${data}`,
	})
}

export const hyapSave = (data) => {
	return asyncRequest({
		url: `/app/zfw/hyap/save`,
		method: 'post',
		data
	})
}


export const findById = (data) => {
	return asyncRequest({
		url: `/app/sysUser/findById`,
		data
	})
}


export const getLoginUserInfo = (data) => {
	return asyncRequest({
		url: `/app/login/getLoginUserInfo?jwtSSOToken=${data}`
	})
}

export const uploadFtpFile = (data) => {
	return uploadRequest({
		url: `/app/common/uploadFtpFile`,
		method: 'post',
		data
	})
}

export const statusById = (id) => {
	return asyncRequest({
		url: `/app/bus/meetingRoom/getById?id=${id}`,
	})
}

export const deleteMeet = (params) => {
	return asyncRequest({
		url: `/app/zfw/hyap/delete/${params}`,
		method:'post'
	})
}

export const downLoadM = (params) => {
	return asyncRequest({
		url: `/app/bus/meetingRoom/export?dateCondition=${params.dateCondition}&meetingId=${params.meetingId}`,
		method:'post'
	})
}


// 跨部门办案平台
export const getCdchpData = (data) => {
	return asyncRequest({
    url: `/ecweb/jjw/peopleArea/selectBapt`,
    method: 'post',
    data
	})
}

export const getMap = (code) => {
	return asyncRequest({
    url: "/mview/ecoa/bapt/map/" + code + ".json",
    method: 'get'
	})
}

// 信访信息系统
export const getSfssData = (data) => {
	return asyncRequest({
    url: `/ecweb/jjw/peopleArea/selectSfss`,
    method: 'post',
    data
	})
}